﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PluginAPI
{
    /// <summary>
    /// 插件API接口
    /// </summary>
    public interface IPlugin
    {
        /// <summary>
        /// 作者
        /// </summary>
        string Author
        {
            get;
        }

        /// <summary>
        /// 宿主程序
        /// </summary>
        IApplication application
        {
            get;
            set;
        }

        /// <summary>
        /// 加载插件
        /// </summary>
        void Load();

        /// <summary>
        /// 卸载插件
        /// </summary>
        void UnLoad();
    }
}